package it.polimi.swKnights.SWIMv2.ejb.entityBeans;

import it.polimi.swKnights.SWIMv2.ejb.entityBeans.RegisteredUser;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;


/**
 * Entity implementation class for Entity: BannedUser
 * 
 */
@Entity
public class BannedUser extends RegisteredUser implements Serializable
{
	@Column(nullable = false)
	private Date endOfBan;
	
	/*
	 * Serial Version ID
	 */
	
	private static final long serialVersionUID = 1L;

	/*
	 * Constructors
	 */
	
	public BannedUser()
	{
		super();
	}
	
	public BannedUser(String userName, String passwordHash, String eMail)
	{
		super(userName, passwordHash, eMail);
	}
	
	/*
	 * Getters and setters
	 */

	public Date getEndOfBan()
	{
		return endOfBan;
	}

	public void setEndOfBan(Date endOfBan)
	{
		this.endOfBan = endOfBan;
	}

}
